arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.30823cs.LGcs.AI
收藏

带有残差上下文的神经谱容量:Transformer内的异构资源分配

Neural Spectral Capacity with Residual Context for Heterogeneous Resource Allocation within Transformers

City University of Hong Kong(香港城市大学)

Chenyu Zhu, Ruoyu Zhao, Zhichao Lu

AI总结:

针对Transformer异构资源分配,提出ResNSC-DP方法,联合分配残差与前馈宽度,在预训练和LLaMA-7B剪枝任务中,相比NSC显著提升性能。

摘要:

当训练成本限制实验时,从架构规格预测相对训练性能可指导设计。神经谱容量(NSC)提供了这样一种启发式方法,但它独立地对投影进行评分,且对相同层配置的兼容重排分配相同的分数。我们为Transformer引入了残差感知神经谱容量(ResNSC),使用源自规格的统计参考来计算累积残差更新,以确定每个投影容量计算中的输入和残差状态统计,同时保留无数据或实例化权重的加法评估。当残差宽度变化时,早期选择会影响后续分数,因此我们在NSC的分配器(NSC-DP)中添加了超出其层和预算状态的残差历史。ResNSC-DP在资源预算下联合分配残差和前馈宽度,在指定的有限候选集中,对最佳数值评估的ResNSC分数具有经过验证的边界。在1.21亿和3.74亿的预训练规模下,所选架构在FineWeb-Edu、WikiText-2和LAMBADA上,在相当的参数预算下,实现了比均匀、可变宽度和锥形分配更低的平均困惑度。在使用LoNAS超级网络的继承权重LLaMA-7B剪枝中,ResNSC-DP在8个匹配的参数预算下,将8任务平均准确率比NSC提高了3.28至5.46个百分点。配对反转保留了投影形状和NSC分数,但在两种设置下均使性能恶化,暴露了与位置无关评分所隐藏的性能差异。本工作的代码可在该https URL获取。

英文摘要:

Predicting relative trained performance from architectural specifications can guide design when training costs limit experimentation. Neural Spectral Capacity (NSC) provides such a heuristic, but scores projections independently and assigns identical scores to compatible reorderings of the same layer configurations. We introduce Residual-Aware Neural Spectral Capacity (ResNSC) for Transformers, using a specification-derived statistical reference for accumulated residual updates to determine the input and residual-state statistics in each projection's capacity calculation, while retaining additive evaluation without data or instantiated weights. When residual widths vary, earlier choices affect later scores, so we augment NSC's allocator (NSC-DP) with residual history beyond its layer-and-budget state. ResNSC-DP jointly allocates residual and feed-forward widths under a resource budget, with certified bounds on the best numerically evaluated ResNSC score within a specified finite candidate set. At the 121M and 374M pretraining scales, selected architectures achieve lower mean perplexity than uniform, variable-width, and tapered allocations on FineWeb-Edu, WikiText-2, and LAMBADA at comparable parameter budgets. In inherited-weight LLaMA-7B pruning using the LoNAS supernet, ResNSC-DP improves eight-task average accuracy over NSC by 3.28--5.46 percentage points across eight matched parameter budgets. Paired reversals preserve the projection shapes and NSC scores yet worsen performance in both settings, exposing performance differences hidden by position-independent scoring. The code for this work is available at https://github.com/Optima-CityU/neural-spectral-capacity.

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

↑