ZOTTA:基于无梯度零阶优化的测试时适应
ZOTTA: Test-Time Adaptation with Gradient-Free Zeroth-Order Optimization
AI总结:
ZOTTA提出一种完全无梯度的测试时适应框架,通过零阶优化实现高效适应,解决传统方法在非可微模型中的局限性,提升模型鲁棒性。
摘要:
测试时适应(TTA)旨在通过适应未标记的测试数据提高模型鲁棒性,但现有方法大多依赖反向传播(BP),计算成本高且不兼容非可微模型。本文提出ZOTTA,一种完全无BP的TTA框架,利用零阶优化(ZOO)仅通过前向传递实现高效适应。ZOO理论上吸引人,但直接应用会导致高维参数空间下收敛缓慢和优化不稳定。ZOTTA通过1)分布鲁棒层选择,自动识别并冻结已提取分布不变特征的层,仅更新领域敏感层以降低优化维度;2)空间特征聚集对齐,通过对齐源和目标间全局聚集的空间特征以减少梯度方差。这些组件使ZOTTA实现架构无关和稳定的无BP适应。在ImageNet-C/R/Sketch/A上的大量实验表明,ZOTTA优于或匹配BP方法,如在ImageNet-C上,ZOTTA将内存使用减少84%,准确率提高3.9%。
英文摘要:
Test-time adaptation (TTA) aims to improve model robustness under distribution shifts by adapting to unlabeled test data, but most existing methods rely on backpropagation (BP), which is computationally costly and incompatible with non-differentiable models such as quantized models, limiting practical deployment on numerous edge devices. Recent BP-free approaches alleviate overhead but remain either architecture-specific or limited in optimization capacity to handle high-dimensional models. We propose ZOTTA, a fully BP-free TTA framework that performs efficient adaptation using only forward passes via Zeroth-Order Optimization (ZOO). While ZOO is theoretically appealing, naive application leads to slow convergence under high-dimensional parameter spaces and unstable optimization due to the lack of labels. ZOTTA overcomes these challenges through 1) Distribution-Robust Layer Selection, which automatically identifies and freezes layers that already extract distribution-invariant features, updating only domain-sensitive layers to reduce the optimization dimensionality and accelerate convergence; 2) Spatial Feature Aggregation Alignment, which stabilizes ZOO by aligning globally aggregated spatial features between source and target to reduce gradient variance. Together, these components enable architecture-agnostic and stable BP-free adaptation. Extensive experiments on ImageNet-C/R/Sketch/A show that ZOTTA outperforms or matches BP-based methods, e.g., it reduces memory usage by 84% and improves accuracy by 3.9% over SAR on ImageNet-C. Code:https://github.com/Zhang-Ronghao/zotta.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。