Model compression is necessary for deployment of transformer models in resource-constrained environments. However, compression reduces the performance of transformer models on downstream tasks. Existing solutions such as Knowledge Distillation (KD) and Parameter Efficient Fine-Tuning (PEFT) have their own limitations. KD trains the student under the teacher's supervision, but needs the teacher's training pipeline. PEFT methods such as LoRA adapt a model to a new task, but they do not recover the loss caused by compression. Our intuition is that a compressed model can be improved by aligning its token embeddings with those of a better performing reference model. We learn this alignment with a small feed-forward Alignment Adapter (AlAd) placed after the final layer of the compressed model. AlAd reads a window of neighbouring tokens, so it can use local context. AlAd is trained post-hoc, after the compressed model has been produced. The compressed model can either be kept frozen or jointly fine-tuned with AlAd. We study the effect of AlAd with BERT-base as the reference model and four compressed variants of the BERT family. We evaluate AlAd on three token-level tasks: POS tagging, NER and Extractive Question Answering. AlAd improves performance of compressed models on all three tasks. Joint fine-tuning gives a larger improvement in performance. The performance gain is the largest for the smallest models. AlAd provides a favorable trade-off between the efficiency and the performance of compressed models.
Compressed Sensor Caching and Collaborative Sparse Data Recovery with Anchor Alignment
Institute of Communications Engineering, National Tsing Hua University(国立清华大学通信工程研究所);National Central University(国立中央大学);National Yang Ming Chiao Tung University(国立阳明交通大学)
Unlocking the Pre-Trained Model as a Dual-Alignment Calibrator for Post-Trained LLMs
Department of Statistics and Data Science, Southern University of Science and Technology(统计与数据科学系,南方科技大学);School of Computing, National University of Singapore(计算学院,新加坡国立大学);Department of Computer Sciences, University of Wisconsin-Madison(计算机科学系,威斯康星大学麦迪逊分校);College of Computing and Data Science, Nanyang Technological University(计算与数据科学学院,南洋理工大学)
Federated Foundation Models Fine-Tuning with Heterogeneous Compressed Clients
The Hong Kong Polytechnic University(香港理工大学);OceanBase, Ant Group(蚂蚁集团OceanBase);School of Management, Xi’an Jiaotong University(西安交通大学管理学院);School of Mathematics and Statistics, Xidian University(西安电子科技大学数学与统计学院);School of Computer Science, Wuhan University(武汉大学计算机学院);School of Computer Science, China University of Geosciences(中国地质大学计算机学院)