UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation

Zhiming Mao, Huimin Wang, Yiming Du, Kam-fai Wong
5/25/2023
cs.CL

Official code: Veason-silverbullet/UniTRec (28 stars, MIT, last commit 2024-02-19).

Abstract

Prior study has shown that pretrained language models (PLM) can boost the performance of text-based recommendation. In contrast to previous works that either use PLM to encode user history as a whole input text, or impose an additional aggregation network to fuse multi-turn history representations, we propose a unified local- and global-attention Transformer encoder to better model two-level contexts of user history. Moreover, conditioned on user history encoded by Transformer encoders, our framework leverages Transformer decoders to estimate the language perplexity of candidate text items, which can serve as a straightforward yet significant contrastive signal for user-item text matching. Based on this, our framework, UniTRec, unifies the contrastive objectives of discriminative matching scores and candidate text perplexity to jointly enhance text-based recommendation. Extensive evaluation shows that UniTRec delivers SOTA performance on three text-based recommendation tasks. Code is available at https://github.com/Veason-silverbullet/UniTRec.

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2023] UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation

281Shell, PythonJun 5, 20232 years agoMIT

Cite this paper

@article{mao2023unitrec,
  title  = {UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation},
  author = {Zhiming Mao and Huimin Wang and Yiming Du and Kam-fai Wong},
  year   = {2023},
  eprint = {2305.15756},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.15756v1}
}

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

Discussion