RepCali: High Efficient Fine-tuning Via Representation Calibration in Latent Space for Pre-trained Language Models
Fujun Zhang, Xiaoying Fan, XiangDong Su, Guanglai Gao
TL;DR
This work addresses the misalignment between encoder representations and decoder expectations in fine-tuned encoder–decoder PLMs. It proposes RepCali, a lightweight representation calibration block that augments encoder outputs in the latent space via a shape seed and a learnable embedding, producing calibrated inputs for the decoder with a small scaling factor. Empirical results across 25 PLM-based models and 8 tasks (including English and Chinese data) show RepCali consistently improves performance over standard fine-tuning baselines while adding only a fraction of parameters. The method is universal, plug-and-play, and demonstrated to benefit both NLG and NLU tasks, including large language models, with evidence from latent-space visualizations of smoother representations. Overall, RepCali offers a practical and effective approach to narrow cross-domain encoder–decoder gaps during fine-tuning, with broad applicability and minimal overhead.
Abstract
Fine-tuning pre-trained language models (PLMs) has become a dominant paradigm in applying PLMs to downstream tasks. However, with limited fine-tuning, PLMs still struggle with the discrepancies between the representation obtained from the PLMs' encoder and the optimal input to the PLMs' decoder. This paper tackles this challenge by learning to calibrate the representation of PLMs in the latent space. In the proposed representation calibration method (RepCali), we integrate a specific calibration block to the latent space after the encoder and use the calibrated output as the decoder input. The merits of the proposed RepCali include its universality to all PLMs with encoder-decoder architectures, its plug-and-play nature, and ease of implementation. Extensive experiments on 25 PLM-based models across 8 tasks (including both English and Chinese datasets) demonstrate that the proposed RepCali offers desirable enhancements to PLMs (including LLMs) and significantly improves the performance of downstream tasks. Comparison experiments across 4 benchmark tasks indicate that RepCali is superior to the representative fine-tuning baselines.
