AdaShadow:非平稳移动环境中响应式测试时模型自适应
AdaShadow: Responsive Test-time Model Adaptation in Non-stationary Mobile Environments
AI总结:
本文提出AdaShadow框架,通过选择性更新关键层、免反向传播评估器、运行时预测器、在线调度器及计算重用方案,解决移动环境中测试时自适应的高延迟问题,实现最佳精度-延迟平衡。
摘要:
在自动驾驶和增强现实等移动应用中,设备端适应持续且不可预测的域偏移对于在不断变化的环境中提供无缝用户体验至关重要。测试时自适应(TTA)通过在预测前立即使用无标签实时数据调整模型参数,成为一种有前景的解决方案。然而,TTA独特的正向-反向-再正向流程显著增加了标准推理的延迟,损害了对时间敏感的移动应用的响应性。本文提出AdaShadow,这是一个针对非平稳移动数据分布和资源动态的响应式测试时自适应框架,通过对自适应关键层进行选择性更新来实现。尽管这种策略在通用设备端训练中已被认可,但TTA的无监督和在线环境在估计层重要性和延迟以及调度最优层更新计划方面带来了独特挑战。AdaShadow通过一个免反向传播评估器快速识别关键层,一个基于单元的运行时预测器来考虑延迟估计中的资源动态,以及一个在线调度器用于及时规划层更新来解决这些挑战。此外,AdaShadow还结合了内存I/O感知的计算重用方案,以进一步减少再正向传递中的延迟。结果表明,AdaShadow在持续偏移下实现了最佳的精度-延迟平衡。在低内存和能耗成本下,AdaShadow相比最先进的TTA方法提供了2倍至3.5倍的加速(毫秒级),且精度相当;相比具有相似延迟的高效监督方法,精度提升了14.8%至25.4%。
英文摘要:
On-device adapting to continual, unpredictable domain shifts is essential for mobile applications like autonomous driving and augmented reality to deliver seamless user experiences in evolving environments. Test-time adaptation (TTA) emerges as a promising solution by tuning model parameters with unlabeled live data immediately before prediction. However, TTA's unique forward-backward-reforward pipeline notably increases the latency over standard inference, undermining the responsiveness in time-sensitive mobile applications. This paper presents AdaShadow, a responsive test-time adaptation framework for non-stationary mobile data distribution and resource dynamics via selective updates of adaptation-critical layers. Although the tactic is recognized in generic on-device training, TTA's unsupervised and online context presents unique challenges in estimating layer importance and latency, as well as scheduling the optimal layer update plan. AdaShadow addresses these challenges with a backpropagation-free assessor to rapidly identify critical layers, a unit-based runtime predictor to account for resource dynamics in latency estimation, and an online scheduler for prompt layer update planning. Also, AdaShadow incorporates a memory I/O-aware computation reuse scheme to further reduce latency in the reforward pass. Results show that AdaShadow achieves the best accuracy-latency balance under continual shifts. At low memory and energy costs, Adashadow provides a 2x to 3.5x speedup (ms-level) over state-of-the-art TTA methods with comparable accuracy and a 14.8% to 25.4% accuracy boost over efficient supervised methods with similar latency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。