Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
arXiv Machine Learning · 2026/7/30 16:01:03

WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning

AI 中文解读
WIDE:给AI大模型装上“智能开关”,推理速度翻倍还不掉精度!这项新技术让大模型不再“一刀切”地处理所有信息,而是像经验丰富的老手一样,根据每个字词的难度动态分配算力,在保证回答质量的同时,大幅提升运行效率。 简单来说,以前的模型剪枝像“批量裁员”,不管什么任务都削减同样的计算单元,容易让AI“变笨”。WIDE则像给模型每个神经元都装了“独立开关”,每个字词都能实时决定要调用多少“脑力”:遇到简单问题就少算点,遇到复杂推理就多算点。这种精细到“细胞级”的动态调节,让AI在省力的同时保持高智商。 这项技术的实际影响很直接:以后用手机AI助手、在线翻译或智能客服时,响应速度会明显更快,消耗的电量也更少。对开发者而言,部署AI的成本会降低,甚至能在普通电脑上运行原本“高不可攀”的大模型。想象一下,未来你的手机就能流畅运行专业级AI应用,这不再是遥不可及的梦想了。
Pruning is a promising approach for improving the efficiency of LLMs. Existing static structured pruning methods are hardware-friendly and can deliver practical throughput gains, but their input-agnostic computation allocation often causes substantial accuracy degradation under aggressive sparsity. Recent dynamic sparsity methods improve quality retention by adapting computation to individual inputs, yet they remain largely limited to coarse-grained structural decisions and their practical acceleration under real-world inference scenarios remains challenging. To address these challenges, we present WIDE, the first end-to-end differentiable token-level dynamic width pruning framework designed for both prefill and decode scenarios. WIDE enables fine-grained computation allocation by allowing each token to dynamically select attention-head groups and FFN-channel groups, extending dynamic pruning beyond layer-level decisions to neuron-block-level granularity. Through a two-stage training pipeline, WIDE learns effective token-wise sparse execution patterns and achieves substantially better quality retention than existing approaches. To make such fine-grained dynamic pruning practical, we further propose a pruning--kernel co-design framework that decomposes dynamic sparsity acceleration into mask reordering, hardware-agnostic block-level skipping, and hardware-dependent intra-block skipping, enabling efficient execution across different granularities. At 50% sparsity, WIDE provides 55.1% performance boost when compared to the state-of-the-art dynamic depth pruning under calibration-only settings. Under prefill and decoding inference workloads, WIDE achieves close-to-theoretical kernel-level speedups of up to 1.98x for prefill and 4.95x for decoding, as well as 1.68x and 1.55x end-to-end acceleration. Our code is available at https://github.com/EIT-NLP/LLM-Pruning/tree/main/WIDE.
分享
阅读原文