Introduction
Deploying large transformer models to edge devices—such as smartphones and IoT sensors—presents a significant challenge: balancing high performance with strict computational and power constraints. While these models are robust, they often struggle to adapt to dynamic, real-world environmental shifts (e.g., changes in lighting or weather) without costly retraining.
AdMiT (Adaptive Multi-Source Tuning) addresses this by enabling models to draw from multiple specialized knowledge sources. Unlike traditional Parameter-Efficient Tuning (PET) methods that rely on a single source, AdMiT intelligently blends a sparse subset of pre-trained "mini-experts" to handle novel target distributions efficiently and privately.
Methodology
AdMiT utilizes a three-stage workflow designed for rapid adaptation in resource-constrained environments:
- Pre-training Stage: A library of PET modules (e.g., LoRA or Adapters) is created, each fine-tuned on a specific source distribution. Each distribution is "fingerprinted" using Kernel Mean Embedding (KME), mapping complex data distributions into high-dimensional vectors.
- KME Module Matching: Upon encountering new target data, the device computes the target's KME. It then solves an optimization problem to find the optimal weighted combination of source KMEs that match the target, identifying the most relevant experts.
- Module Integration and Adaptation: The selected modules are linearly combined into an integrated module. This can be used for zero-shot inference or further refined via Sharpness-Aware Pseudo-label Minimization, which ensures stable adaptation from unlabeled data by finding flat minima in the loss landscape.
Experimental Evaluation
The framework was evaluated on several benchmarks simulating real-world shifts:
- Digits-Five: Cross-domain adaptation between MNIST, USPS, SVHN, and other digit datasets.
- CIFAR-100C & ImageNet-C: Robustness against 15 types of image corruptions (e.g., fog, snow, blur) at varying severities.
- Cityscapes & ACDC: Semantic segmentation tasks demonstrating versatility across different computer vision domains.
Results and Discussion
AdMiT demonstrates state-of-the-art performance across all tested benchmarks. On ImageNet-C, AdMiT achieved 62.4% accuracy, significantly outperforming single-source methods like TENT (52.0%). In sequential adaptation scenarios on CIFAR-100C, where environments shift continuously, AdMiT maintained a leading average accuracy of 73.3%, beating multi-source baselines like CONTRAST (72.5%) and SESoM (60.5%).
Key advantages of the AdMiT framework include:
- Efficiency: By replacing complex neural routers with KME-based matching, AdMiT minimizes computational overhead and eliminates the need for forward passes during selection.
- Privacy: KME fingerprints allow for distribution matching without sharing raw training data between devices.
- Robustness: The use of sharpness-aware minimization prevents model collapse during pseudo-labeling, ensuring stable performance even with noisy, few-shot target data.
Conclusion
AdMiT provides a scalable and privacy-preserving solution for adapting large models to the edge. By leveraging a library of specialized PET modules and an efficient KME-based matching mechanism, it achieves superior accuracy and robustness in dynamic environments. Future research will explore extending this framework to Large Language Models (LLMs) and automating the generation of source modules to cover even broader environmental shifts.
Summary updated