arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.01117cs.LGcs.AI
收藏

HASTE: 面向大输出空间的硬件感知动态稀疏训练

HASTE: Hardware-Aware Dynamic Sparse Training for Large Output Spaces

University of Waterloo(滑铁卢大学)

Nasib Ullah, Jinbin Zhang, Jean Lucien Randrianantenaina, Erik Schultheis, Rohit Babbar

AI总结:

提出组共享固定扇入稀疏性方法,通过半结构化输出层设计结合长尾分解,在极端多标签分类中实现显著加速并保持精度。

摘要:

极端多标签分类(XMC)涉及在具有数百万标签的大输出空间上学习模型,使得输出层成为内存计算瓶颈。虽然基于稀疏性的方法降低了算术复杂度,但由于不规则内存访问、硬件利用率低或在长尾场景中依赖辅助架构组件,它们通常无法产生成比例的速度提升。我们引入了组共享固定扇入稀疏性,一种半结构化的输出层设计,其中语义相关的标签共享一个稀疏输入模式,同时保留独立的权重。这种分组引入了任务对齐的归纳偏置——鼓励相关标签共享特征子集——同时减少了索引内存开销,增加了跨标签的特征重用,并通过利用现代加速器原语的自定义CUDA内核实现了高效的GPU执行。作为辅助目标的替代方案,我们利用XMC的长尾结构,将输出层分解为频繁标签上的小型密集头部和其余标签上的组共享稀疏尾部,在保留稀疏性内存优势的同时提供了信息丰富的梯度路径。通过内核级微基准测试,我们表明组共享固定扇入将算术减少转化为实际的挂钟时间增益,在前向传播中实现了高达4.4倍的加速,在反向传播中实现了高达25倍的加速,同时与FLOPs匹配的密集瓶颈相比,性能仅相差几个百分点。在大型XMC基准测试中,我们的方法在precision@k上匹配或优于先前的稀疏基线,同时缩小了与密集方法的性能差距。

英文摘要:

Extreme multi-label classification (XMC) involves learning models over large output spaces with millions of labels, making the output layer a memory-compute bottleneck. While sparsity-based methods reduce arithmetic complexity, they often fail to yield proportional speedups due to irregular memory access, poor hardware utilization, or reliance on auxiliary architectural components in long-tailed regimes. We introduce group-shared fixed fan-in sparsity, a semi-structured output-layer design in which semantically related labels share a sparse input pattern while retaining independent weights. This grouping introduces a task-aligned inductive bias -- encouraging related labels to share feature subsets -- while reducing index memory overhead, increasing feature reuse across labels, and enabling efficient GPU execution via custom CUDA kernels that leverage modern accelerator primitives. As an alternative to auxiliary objectives, we exploit the long-tailed structure of XMC by decomposing the output layer into a small dense head over frequent labels and a group-shared sparse tail over the remainder, providing an informative gradient pathway while preserving the memory benefits of sparsity. Through kernel-level microbenchmarking, we show that group-shared fixed fan-in translates arithmetic reductions into practical wall-clock gains, achieving up to $4.4\times$ speedup in the forward pass and up to $25\times$ speedup in backward passes over standard fixed fan-in sparsity, while operating within a few percent of a FLOPs-matched dense bottleneck. Across large-scale XMC benchmarks, our approach matches or improves precision@k over prior sparse baselines, while narrowing the performance gap to dense.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑