Not all adapters matter - freezing the right ones saves massive GPU memory.
This paper introduces SAFE (Selective Adapter FrEezing), a method that reduces memory usage in adapter-based fine-tuning by identifying and freezing less important adapters early in training, achieving significant memory savings while maintaining or improving model performance.
-----
https://arxiv.org/abs/2412.03587
π Original Problem:
β Adapter-based fine-tuning, while parameter-efficient, still requires high memory usage due to activation memory during backpropagation
β Current adapter methods reduce trainable parameters by 99.37% but only decrease memory usage by 22.19%, as activation memory accounts for 76% of total memory usage
-----
π οΈ Solution in this Paper:
β SAFE monitors adapter importance during a warm-up phase using Centered Kernel Alignment (CKA) to measure feature representation changes
β It gradually freezes less important adapters based on a moving threshold following a cubic schedule
β The method induces regularization effects by controlling weight norms, leading to flatter loss landscapes and better generalization
-----
π‘ Key Insights:
β Not all adapters contribute equally to model adaptation - some finish contributing early in training
β Adapters closer to input layers generally learn basic features and can be frozen earlier
β Early freezing creates regularization effects that improve model robustness
-----
π Results:
β Reduces memory usage by 42.85%, computation by 34.59%, and training time by 11.82%
β Achieves comparable or better performance than baseline methods
β On RoBERTa-large, reduces memory by 79.92% while improving F1 score from 93.39 to 94.13










