HyPe: Better Pre-trained Language Model Fine-tuning with Hidden Representation Perturbation

Hongyi Yuan, Zheng Yuan, Chuanqi Tan, Fei Huang, Songfang Huang
12/17/2022
cs.CL
transformer-attention

Official code: Yuanhy1997/HyPe (14 stars, Python, MIT, last commit 2023-07-11).

Abstract

Language models with the Transformers structure have shown great performance in natural language processing. However, there still poses problems when fine-tuning pre-trained language models on downstream tasks, such as over-fitting or representation collapse.

Show full abstract

In this work, we propose HyPe, a simple yet effective fine-tuning technique to alleviate such problems by perturbing hidden representations of Transformers layers. Unlike previous works that only add noise to inputs or parameters, we argue that the hidden representations of Transformers layers convey more diverse and meaningful language information. Therefore, making the Transformers layers more robust to hidden representation perturbations can further benefit the fine-tuning of PLMs en bloc. We conduct extensive experiments and analyses on GLUE and other natural language inference datasets. Results demonstrate that HyPe outperforms vanilla fine-tuning and enhances generalization of hidden representations from different layers. In addition, HyPe acquires negligible computational overheads, and is better than and compatible with previous state-of-the-art fine-tuning techniques.

View on arXivView PDF

Code Implementations(1)

Yuanhy1997/HyPeOfficial100%
MIT

HyPe: Better Pre-trained Language Model Fine-tuning with Hidden Representation Perturbation [ACL 2023]

141PythonMay 18, 20233 years agoMIT

Similar Papers

Cite this paper

@article{yuan2022hype,
  title  = {HyPe: Better Pre-trained Language Model Fine-tuning with Hidden Representation Perturbation},
  author = {Hongyi Yuan and Zheng Yuan and Chuanqi Tan and Fei Huang and Songfang Huang},
  year   = {2022},
  eprint = {2212.08853},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.08853}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.08853.svg)](https://codeofpaper.com/paper/2212.08853)

Discussion