Abstract
Fine-tuning massive foundation models is essential for task-specific adaptation but remains computationally expensive. Even Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA encounter memory bottlenecks in multi-user "Fine-Tuning as a Service" (FTaaS) environments. We present Collaborative Adaptation (ColA), a framework powered by Gradient Learning (GL). By decoupling the computation of hidden state gradients from parameter gradients, ColA offloads parameter updates to low-cost secondary devices. This approach maintains performance parity with state-of-the-art methods while significantly reducing primary GPU memory requirements and enabling flexible, multi-user collaboration.
Introduction
The adaptation of large-scale models (e.g., Llama-2, GPT-2) typically relies on fine-tuning. However, standard backpropagation couples the calculation of gradients for hidden representations and model parameters, forcing both to reside on high-end GPUs. In FTaaS scenarios, where a central server must support numerous concurrent users, this coupling leads to a "memory wall." Even efficient methods like LoRA can fail to scale when multiple user adapters are trained simultaneously on a single machine. ColA addresses this by treating parameter optimization as a separate learning task that can be offloaded from the primary compute path.
Methodology: Gradient Decoupling and Learning
The core of ColA is the Gradient Learning (GL) algorithm, which implements Gradient Decoupling. Unlike traditional backpropagation, ColA splits the workload to break the GPU bottleneck:
- Primary GPU: Executes the forward and backward passes to calculate the gradients of the hidden representations.
- Secondary Device: Receives offloaded gradients and hidden inputs to solve a local optimization problem, updating adapter parameters independently of the primary GPU's backpropagation path.
This decoupling makes ColA model-agnostic and parameter-free regarding the base model's backpropagation path. Furthermore, it supports Parameter Merging, allowing users to employ diverse adapter architectures—such as Linear, MLP, or Low-Rank—which can be trained collaboratively and merged for efficient inference.
Experimental Evaluation
ColA was evaluated across several benchmarks, including the GLUE suite for sequence classification, various sequence-to-sequence tasks (WikiSQL, SAMSum), and instruction tuning on Llama-2.
Performance and Memory Efficiency
Results indicate that ColA consistently matches or exceeds the performance of established PEFT methods. On the GLUE benchmark, ColA (MLP) achieved an average score of 85.6, surpassing LoRA's 85.4.
Beyond accuracy, ColA offers substantial memory advantages. In Llama-2 experiments with a batch size of 32, LoRA exceeded the capacity of a 48GB GPU. In contrast, ColA (Linear) successfully completed the task using only 42.8 GB by offloading parameter gradients, demonstrating a constant GPU memory footprint regardless of adapter complexity.
Discussion and Conclusion
ColA represents a significant step toward democratizing model adaptation by reducing the hardware barrier for fine-tuning. By broadcasting "adaptation data" (hidden states and gradients), a central server can facilitate local training on user-owned, lower-cost hardware.
The primary trade-off is communication latency; transferring data between devices can increase per-iteration time. Future research will focus on mitigating this through faster interconnects, integrating quantization techniques like QLoRA, and extending the framework to complex multi-model systems.
Summary updated