Collaborative decoding of critical tokens for boosting factuality of large language models

Lifeng Jin, Baolin Peng, Linfeng Song, Haitao Mi, Ye Tian +1 more
2/28/2024
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

The most common training pipeline for large language models includes pretraining, finetuning and aligning phases, with their respective resulting models, such as the pretrained model and the finetuned model. Finetuned and aligned models show improved abilities of instruction following and safe generation, however their abilities to stay factual about the world are impacted by the finetuning process. Furthermore, the common practice of using sampling during generation also increases chances of hallucination. In this work, we introduce a collaborative decoding framework to harness the high factuality within pretrained models through the concept of critical tokens. We first design a critical token classifier to decide which model to use for the next token, and subsequently generates the next token using different decoding strategies. Experiments with different models and datasets show that our decoding framework is able to reduce model hallucination significantly, showcasing the importance of the collaborative decoding framework.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{jin2024collaborative,
  title  = {Collaborative decoding of critical tokens for boosting factuality of large language models},
  author = {Lifeng Jin and Baolin Peng and Linfeng Song and Haitao Mi and Ye Tian and Dong Yu},
  year   = {2024},
  eprint = {2402.17982},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.17982v1}
}

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

Discussion