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

Yu Mitsuzumi, Akisato Kimura, Yasuhiro Fujiwara, Hisashi KashimaarXiv 2026

TL;DR

Deploying Test-Time Adaptation (TTA) on edge devices is usually impossible due to the massive memory required for backpropagation. This paper introduces a resource-friendly TTA method that uses forward-only Zeroth-Order Optimization (ZOO) to tune just the merging coefficients of multiple pre-adapted models. By combining this with smart server-side weight preprocessing, the authors slash memory usage by up to 80% while outperforming existing backpropagation-free methods.

What Problem Does This Paper Address?

Deep neural networks frequently stumble when deployed in the real world due to domain shift—differences between training data and real-world testing data (e.g., a vision model trained on sunny days trying to navigate through heavy fog). Test-Time Adaptation (TTA) fixes this by updating the model on the fly using incoming, unlabeled test data.

However, standard TTA algorithms rely heavily on backpropagation (BP). BP requires storing intermediate activations, computational graphs, and gradients, which balloons memory usage. This makes TTA a non-starter for resource-constrained edge devices like smartphones or IoT sensors. While some "BP-free" methods exist, they often freeze the model entirely, leading to rigid, suboptimal performance.

The authors set out to design a TTA method that actually updates model behavior but fits comfortably within the strict memory limits of edge hardware.

Methods

The authors build their solution on the Cross-Device Collaborative TTA (CDC-TTA) framework, where resource-abundant servers and resource-limited edge devices share model information. The method relies on three main pillars:

  1. Zeroth-Order Optimization (ZOO): Instead of calculating exact gradients via backpropagation, the method uses Zeroth-Order SGD (ZO-SGD). ZOO estimates gradients by applying random positive and negative perturbations to the parameters and measuring the change in loss. Crucially, this requires only forward passes, eliminating the need to store a computational graph or intermediate activations.
  2. Optimizing Merging Coefficients: ZOO notoriously struggles in high-dimensional spaces (like optimizing millions of model weights). To bypass this, the authors don't optimize the weights directly. Instead, they take multiple models already adapted to different domains and merge them. The edge device only uses ZOO to optimize a small vector of merging coefficients (how much weight to give each model), drastically lowering the optimization dimensionality.
  3. Server-Side Preprocessing: To maximize the efficiency of this combination, the server preprocesses the models before sending them to the edge device:
  4. Non-influential Weight Suppression (NWS): Filters out noisy, non-influential weight changes (task vectors) by applying top-$k\%$ filtering.
  5. Redundancy Reduction (RR): Uses Singular Value Decomposition (SVD) to compress similar task vectors from related domains.
  6. Adaptive Rank Selection (ARS): Automatically determines the optimal compression rank for each weight group to minimize information loss.

On the device side, a Random Seed Trick is used during ZOO: instead of storing large random perturbation vectors in memory, the device simply stores a random seed integer and regenerates the perturbations on the fly, keeping memory usage virtually identical to standard inference.

Figure 2. Overview of Our Method. On the server side, before providing the model weights to each device, preprocessing procedures are applied to reduce the non-influential values and redundancy in the model weights. On the device side, we build the merged model based on the provided initial merging coefficients and task matrices, and we update the coefficients via ZO-SGD.

Datasets

The method was validated using standard computer vision benchmarks for domain shift:

  • Common Corruption Benchmarks: CIFAR10-C, CIFAR100-C, and ImageNet-C (which apply 15 different types of algorithmic corruptions like blur, noise, and weather effects to the original datasets).
  • Style Transfer Benchmark: Stylized-ImageNet (ImageNet images transformed via style-transfer using 50 different artistic styles) to test adaptation performance across varying numbers of distinct domains.

Key Insights and Ideas

  • The ZOO-Model Merging Synergy: ZOO's biggest weakness is high dimensionality; Model Merging's biggest weakness is its ad-hoc, static nature. By using ZOO to optimize only the merging recipes, the authors elegantly cancel out the weaknesses of both techniques.
  • Task Vectors are Noisy: Not every weight change during fine-tuning is useful. Trimming away the least significant changes (via NWS) actually reduces inter-model interference and improves the final merged model's accuracy.
  • Quantization Compatibility: Because this method completely bypasses gradients, it can be applied directly to quantized models (e.g., 8-bit models), where backpropagation is mathematically or computationally impossible.

Key Results

Massive Memory Savings

The proposed method achieved a massive reduction in RAM consumption. While conventional BP-based TTA methods (like ROID or DeYO) required up to 9.37 GB of memory to adapt a ResNet-50 on ImageNet-C, the proposed method required only 1.84 GB—making it fully executable on low-end edge hardware.

Figure 4. Memory Usage Analysis. We compared the memory usage of CDC-TTA methods (CoLA and Ours), and the conven- tional BP-based methods (ROID and DeYO).

Superior Accuracy vs. BP-Free Baselines

The method consistently outperformed other state-of-the-art BP-free adaptation methods (like BN stats, T3A, and CoLA) across all benchmarks. For instance, on ImageNet-C using a ResNet-50 backbone, the proposed method achieved the lowest average error rate:

Table 2. Experimental results on ImageNet-C. The evaluation results are presented in terms of error rate [%]. The best are highlighted in bold.

Limitations and Future Work

Despite its success, the authors note a clear trade-off: accuracy does not yet fully match full backpropagation-based TTA methods. This stems from two factors: zeroth-order gradient estimation is inherently less precise than exact backprop, and restricting optimization to merging coefficients limits the model's degrees of freedom to adapt to entirely novel domains.

As a next step, the authors propose exploring hybrid approaches that dynamically mix a small amount of backpropagation for critical layers with ZOO for the rest of the network, balancing the device's available memory against target predictive accuracy.

Summary updated

BibTeX
@misc{mitsuzumi2026cross,
  author = {Yu Mitsuzumi and Akisato Kimura and Yasuhiro Fujiwara and Hisashi Kashima},
  title = {{Cross-device Collaborative Test-time Adaptation with Zeroth-order Optimization and Model Merging}},
  year = {2026},
  eprint = {2607.02988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.02988},
}
Figure