Training Language Models to Generate Text with Citations via Fine-grained Rewards

Chengyu Huang, Zeqiu Wu, Yushi Hu, Wenya Wang
2/6/2024
cs.CL

No official code found. Best implementation: HCY123902/atg-w-fg-rw (10 stars, Apache-2.0, last commit 2024-05-27).

Abstract

While recent Large Language Models (LLMs) have proven useful in answering user queries, they are prone to hallucination, and their responses often lack credibility due to missing references to reliable sources. An intuitive solution to these issues would be to include in-text citations referring to external documents as evidence. While previous works have directly prompted LLMs to generate in-text citations, their performances are far from satisfactory, especially when it comes to smaller LLMs. In this work, we propose an effective training framework using fine-grained rewards to teach LLMs to generate highly supportive and relevant citations, while ensuring the correctness of their responses. We also conduct a systematic analysis of applying these fine-grained rewards to common LLM training strategies, demonstrating its advantage over conventional practices. We conduct extensive experiments on Question Answering (QA) datasets taken from the ALCE benchmark and validate the model's generalizability using EXPERTQA. On LLaMA-2-7B, the incorporation of fine-grained rewards achieves the best performance among the baselines, even surpassing that of GPT-3.5-turbo.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
102Shell, PythonMay 27, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{huang2024training,
  title  = {Training Language Models to Generate Text with Citations via Fine-grained Rewards},
  author = {Chengyu Huang and Zeqiu Wu and Yushi Hu and Wenya Wang},
  year   = {2024},
  eprint = {2402.04315},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.04315v3}
}

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

Discussion