Generate to Understand for Representation

Changshang Xue, Xiande Zhong, Xiaoqing Liu
6/14/2023
cs.CLcs.IR

Official code: laohur/GUR (14 stars, last commit 2024-04-18).

Abstract

In recent years, a significant number of high-quality pretrained models have emerged, greatly impacting Natural Language Understanding (NLU), Natural Language Generation (NLG), and Text Representation tasks. Traditionally, these models are pretrained on custom domain corpora and finetuned for specific tasks, resulting in high costs related to GPU usage and labor. Unfortunately, recent trends in language modeling have shifted towards enhancing performance through scaling, further exacerbating the associated costs. Introducing GUR: a pretraining framework that combines language modeling and contrastive learning objectives in a single training step. We select similar text pairs based on their Longest Common Substring (LCS) from raw unlabeled documents and train the model using masked language modeling and unsupervised contrastive learning. The resulting model, GUR, achieves impressive results without any labeled training data, outperforming all other pretrained baselines as a retriever at the recall benchmark in a zero-shot setting. Additionally, GUR maintains its language modeling ability, as demonstrated in our ablation experiment. Our code is available at \url{https://github.com/laohur/GUR}.

View on arXivView PDF

Code Implementations(1)

laohur/GUROfficial100%

“Generate to Understand for Representation”

140Shell, PythonApr 25, 20232 years ago

Similar Papers

Cite this paper

@article{xue2023generate,
  title  = {Generate to Understand for Representation},
  author = {Changshang Xue and Xiande Zhong and Xiaoqing Liu},
  year   = {2023},
  eprint = {2306.10056},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.10056v1}
}

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/2306.10056.svg)](https://codeofpaper.com/paper/2306.10056)

Discussion