arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.14635cs.LGcs.CLcs.IR
收藏

对压缩深度学习模型性能的改进:对齐适配器

Improving the Performance of Compressed Transformers with Post-Hoc Embedding Alignment

Indian Institute of Technology Guwahati Guwahati Assam India;B.K. Birla Institute of Engineering \& Technology Pilani Rajasthan India

Rohit Raj Rai, Abhishek Dhaka, Amit Awekar

AI总结:

本文提出对齐适配器,通过轻量级滑动窗口机制提升压缩深度学习模型性能,实验表明其在保持模型大小和延迟的同时显著提升表现。

摘要:

压缩深度学习(DL)模型对于在资源受限环境中部署至关重要。但它们的性能往往落后于其大规模对应物。为弥合这一差距,我们提出了对齐适配器(AlAd):一种轻量级、基于滑动窗口的适配器。它将压缩模型的token级嵌入对齐到原始大模型的嵌入。AlAd保留了局部上下文语义,能够在不同维度或架构之间实现灵活对齐,并且完全不依赖于底层压缩方法。AlAd可以通过两种方式部署:作为冻结压缩模型上的即插即用模块,或通过与压缩模型联合微调以进一步提升性能。通过在三个token级NLP任务上对BERT家族模型进行实验,我们证明AlAd仅在大小和延迟上有微小的开销,就能显著提升压缩模型的性能。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑