K-Merge: Online Continual Merging of Adapters for On-device Large Language Models
Donald Shenaj, Ondrej Bohdal, Taha Ceritli, Mete Ozay, Pietro Zanuttigh, Umberto Michieli
TL;DR
The paper tackles on-device continual adaptation of LLMs by merging LoRA adapters under a fixed storage budget. It introduces data-free, similarity-based clustering and history-aware merging, implemented in two variants, K-Merge and K-Merge++, to efficiently integrate new adapters while preserving performance on previously seen tasks. Across 40 LoRAs, five problem types, and eight languages, the approach outperforms static baselines and other merging methods, achieving substantial task coverage with minimal storage and computation. This work enables private, scalable on-device personalization for multilingual, multi-task LLMs without requiring access to training data.
Abstract
On-device deployment of Large Language Models (LLMs) frequently leverages Low-Rank Adapters (LoRAs) to support diverse downstream tasks under tight resource constraints. To address the limited storage capacity of mobile devices, recent works have explored model merging techniques to fuse multiple LoRAs into a single one. In practice, however, LoRAs are often delivered incrementally, as users request support for new tasks (e.g., novel problem types or languages). This scenario introduces a new challenge: on-device online continual merging, where the objective is to incorporate new LoRAs while preserving the performance on previously supported tasks. In this paper, we propose a data-free and computationally efficient strategy for selecting and merging LoRAs when a new one becomes available, assuming the device can store only a limited number of adapters. Extensive experiments across real-world tasks demonstrate the superiority of our approach compared to alternative strategies while adhering to the storage budget and compute limitations of on-device settings.
