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

一种尺寸并不适合所有情况:基于DEBA的架构感知自适应批调度

One Size Does Not Fit All: Architecture-Aware Adaptive Batch Scheduling with DEBA

François Belias, Naser Ezzati-Jivan, Foutse Khomh

AI总结:

本文提出DEBA自适应批调度器,通过梯度方差等指标指导批大小调整,并在六种架构上系统评估,证明批大小自适应需架构感知设计,轻量级架构加速显著而深层或稳定架构收益有限。

摘要:

自适应批大小方法旨在加速神经网络训练,但现有方法在所有架构上采用相同的自适应策略,假设存在一种通用的解决方案。我们提出DEBA(Dynamic Efficient Batch Adaptation,动态高效批自适应),一种自适应批调度器,通过监控梯度方差、梯度范数变化和损失变化来指导批大小调整。通过在CIFAR-10和CIFAR-100上对六种架构(ResNet-18/50、DenseNet-121、EfficientNet-B0、MobileNet-V3、ViT-B16)进行系统评估,每个配置使用五个随机种子,我们证明架构从根本上决定了自适应效果。我们的研究发现:(1)轻量级和中等深度架构(MobileNet-V3、DenseNet-121、EfficientNet-B0)实现了45-62%的训练加速,同时准确率提高了1-7%;(2)浅层残差网络(ResNet-18)在准确率上表现出+2.4-4.0%的一致增益,加速比为36-43%,而深层残差网络(ResNet-50)表现出高方差和偶发性性能退化;(3)已经稳定的架构(ViT-B16)尽管保持了准确率,但加速比很小(6%),表明自适应收益随基线优化特性的不同而变化。我们引入了一个使用梯度稳定性指标(稳定性分数、梯度范数变化)的基线特征描述框架,用于预测哪些架构将从自适应调度中受益。我们的消融研究揭示了先前工作中常被忽视的关键设计选择:滑动窗口统计(相对于完整历史)和自适应之间足够的冷却期(5个以上epoch)对成功至关重要。这项工作挑战了自适应方法可跨架构泛化的普遍假设,并首次提供了系统性证据,表明批大小自适应需要架构感知的设计。

英文摘要:

Adaptive batch size methods aim to accelerate neural network training, but existing approaches apply identical adaptation strategies across all architectures, assuming a one-size-fits-all solution. We introduce DEBA (Dynamic Efficient Batch Adaptation), an adaptive batch scheduler that monitors gradient variance, gradient norm variation and loss variation to guide batch size adaptations. Through systematic evaluation across six architectures (ResNet-18/50, DenseNet-121, EfficientNet-B0, MobileNet-V3, ViT-B16) on CIFAR-10 and CIFAR-100, with five random seeds per configuration, we demonstrate that the architecture fundamentally determines adaptation efficacy. Our findings reveal that: (1) lightweight and medium-depth architectures (MobileNet-V3, DenseNet-121, EfficientNet-B0) achieve a 45-62% training speedup with simultaneous accuracy improvements of 1-7%; (2) shallow residual networks (ResNet-18) show consistent gains of +2.4 - 4.0% in accuracy, 36 - 43% in speedup, while deep residual networks (ResNet-50) exhibit high variance and occasional degradation; (3) already-stable architectures (ViT-B16) show minimal speedup (6%) despite maintaining accuracy, indicating that adaptation benefits vary with baseline optimization characteristics. We introduce a baseline characterization framework using gradient stability metrics (stability score, gradient norm variation) that predicts which architectures will benefit from adaptive scheduling. Our ablation studies reveal critical design choices often overlooked in prior work: sliding window statistics (vs. full history) and sufficient cooldown periods (5+ epochs) between adaptations are essential for success. This work challenges the prevailing assumption that adaptive methods generalize across architectures and provides the first systematic evidence that batch size adaptation requires an architecture-aware design.

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

↑