Cross-device Collaborative Test-time Adaptation with Zeroth-order Optimization and Model Merging

TL;DR

Proposed cross-device collaborative test-time adaptation using zeroth-order optimization and model merging, reducing error rate by 18.3% on CIFAR10-C.

cs.CV 🔴 Advanced 2026-07-03 33 views
Yu Mitsuzumi Akisato Kimura Yasuhiro Fujiwara Hisashi Kashima
test-time adaptation zeroth-order optimization model merging edge devices memory optimization

Key Findings

Methodology

This study proposes a novel test-time adaptation method combining zeroth-order optimization (ZOO) and model merging, suitable for resource-constrained devices. By sharing model information across devices under a cross-device collaborative framework, the method uses ZOO to optimize without resource-intensive backpropagation. Model merging reduces optimization dimensions by optimizing merging coefficients, and a preprocessing strategy reduces inter-model redundancy.

Key Results

  • On CIFAR10-C, the proposed method reduced error rates under Gaussian noise from 72.3% to 24.8%, showing significant performance improvement.
  • On CIFAR100-C, the average error rate was reduced to 18.3%, significantly outperforming existing BP-free methods.
  • On Stylized-ImageNet, the method performed well across various style-transferred datasets, demonstrating broad applicability.

Significance

This research offers a new approach for efficient test-time adaptation on resource-constrained devices, addressing the high memory and computational demands of traditional methods. By combining ZOO and model merging, it significantly reduces memory usage and enhances model adaptability across domains.

Technical Contribution

Technical contributions include introducing ZOO to avoid the resource consumption of backpropagation, using model merging to reduce optimization dimensions, and proposing a unique preprocessing strategy to enhance model merging efficiency. These innovations enable test-time adaptation on resource-constrained devices.

Novelty

This method is the first to combine ZOO and model merging for test-time adaptation, significantly reducing memory requirements and improving adaptation efficiency. Compared to existing methods, it offers a more resource-friendly solution.

Limitations

  • ZOO's slow convergence in high-dimensional optimization may affect adaptation efficiency.
  • The method may require parameter adjustments for optimal performance on specific tasks.

Future Work

Future work could explore applying this method to more device types and further optimizing merging strategies to improve adaptation speed and accuracy. Additionally, researching real-time model updates in dynamic environments is an important direction.

AI Executive Summary

In modern applications, deep neural networks (DNNs) face domain shift challenges, especially on resource-constrained edge devices. Traditional test-time adaptation methods rely on backpropagation, which requires substantial memory and computational resources, making them difficult to implement on these devices.

This paper proposes a novel cross-device collaborative test-time adaptation method, combining zeroth-order optimization (ZOO) and model merging techniques. By sharing model information across multiple devices, the method achieves efficient model updates on resource-constrained devices. ZOO avoids the resource consumption of backpropagation, while model merging reduces optimization dimensions by optimizing merging coefficients.

Experimental results show that this method significantly reduces error rates across multiple datasets, particularly excelling on CIFAR10-C and Stylized-ImageNet. Although ZOO's slow convergence in high-dimensional optimization may pose challenges, its resource-friendly nature provides important insights for future research.

Deep Analysis

Background

Deep neural networks have achieved remarkable success in various fields but still face challenges with domain shift, especially on edge devices. Traditional test-time adaptation methods rely on backpropagation, which requires substantial memory and computational resources, limiting their application on resource-constrained devices.

Core Problem

The core problem is achieving efficient test-time adaptation on resource-constrained devices. The memory demands and computational complexity of existing methods make them difficult to deploy on these devices, leading to performance degradation under domain shifts.

Innovation

The core innovation of this paper lies in combining zeroth-order optimization (ZOO) and model merging techniques. ZOO avoids the resource consumption of backpropagation by requiring only forward computation, while model merging reduces optimization dimensions by optimizing merging coefficients, enabling efficient model updates on resource-constrained devices.

Methodology

  • �� Use ZOO for optimization, avoiding memory consumption of backpropagation.
  • �� Reduce optimization dimensions through model merging, optimizing merging coefficients.
  • �� Introduce preprocessing strategies to remove inter-model redundancy and enhance merging efficiency.

Experiments

Experiments were conducted on CIFAR10-C, CIFAR100-C, and Stylized-ImageNet datasets, using existing BP-free methods as baselines. Evaluation metrics included error rates and model adaptation speed.

Results

On CIFAR10-C, the method significantly reduced error rates under Gaussian noise, with average error rates outperforming baseline methods. On Stylized-ImageNet, the method performed well across various style-transferred datasets, demonstrating broad applicability.

Applications

The method is applicable to scenarios requiring real-time model updates on resource-constrained devices, such as image recognition on mobile devices and data analysis in IoT devices.

Limitations & Outlook

While the method has advantages in memory usage, ZOO's slow convergence in high-dimensional optimization may affect adaptation efficiency. Future work could explore further optimizing merging strategies to improve adaptation speed and accuracy.

Plain Language Accessible to non-experts

Imagine you're cooking in a kitchen. Traditional test-time adaptation methods are like a complex recipe that requires you to constantly refer back to the cookbook, needing a lot of time and effort. This method is like a simplified recipe that only requires you to remember key steps, greatly reducing the memory burden. By sharing experiences from different chefs (model information), you can quickly adjust your dish (model), even in different kitchen environments (domains), to make delicious food (efficient models).

ELI14 Explained like you're 14

Imagine you're playing a video game where your character needs to adapt to new challenges in different levels. Traditional methods are like having to relearn all skills each time, but this method is like quickly borrowing other players' experiences to directly enhance your character's abilities. This way, even on resource-limited devices, your character can quickly adapt to new levels and defeat enemies!

Glossary

Zeroth-order Optimization

An optimization method that does not require derivative information, suitable for functions where derivatives are hard to compute.

Used to avoid the resource consumption of backpropagation.

Model Merging

Constructing a stronger model by combining the weights of multiple pre-trained models.

Used to reduce optimization dimensions.

Test-time Adaptation

A method to update a model using input test data to improve accuracy.

Used to address domain shift issues.

Domain Shift

A phenomenon where model performance degrades due to differences between training and test data distributions.

The core issue test-time adaptation aims to solve.

Edge Devices

Resource-limited devices such as mobile phones and IoT sensors.

The primary application scenario for this method.

Open Questions Unanswered questions from this research

  • 1 How to update models in real-time in dynamic environments? Current methods perform limitedly in rapidly changing scenarios, requiring new strategies.
  • 2 How to improve ZOO's convergence speed in high-dimensional optimization? Current methods perform poorly in this aspect.

Applications

Immediate Applications

Mobile Device Image Recognition

Implement real-time image recognition on phones, reducing memory usage and improving adaptation speed.

IoT Data Analysis

Conduct real-time data analysis in IoT devices, adapting to different environmental changes.

Long-term Vision

Smart City Monitoring

Implement real-time monitoring and data analysis in smart cities, adapting to constantly changing urban environments.

Abstract

Test-time adaptation (TTA) mitigates domain shifts by using incoming test data to update a model on the fly. The majority of TTA methods require resource-intensive backpropagation (BP) for model updates, particularly demanding large memory sizes, which makes it infeasible to deploy them on resource-limited devices (e.g., edge devices). To address this issue, we integrate two different techniques, zeroth-order optimization (ZOO) and model merging, under the recently established cross-device collaborative TTA (CDC-TTA) framework, where the system is composed of a mixture of resource-abundant and resource-limited devices, and the model information (e.g., model weights obtained on each device) is shared across the devices. Our method is executable on resource-limited devices by introducing ZOO, which requires only forward processing and bypasses the resource-intensive BP optimization. Concurrently, to mitigate the high-dimensional optimization difficulty caused by the side effect of ZOO, we incorporate model merging of the shared multiple models and set the merge coefficients as the optimization objective, which successfully reduces the optimization dimension. In addition, to enhance the synergistic combination of ZOO and model merging, we propose a unique preprocessing strategy that trims intra-model non-influential weights and reduces the inter-model information redundancy. We empirically confirmed the effectiveness of our method using common corruption and style-transferred image benchmarks.

cs.CV