Putting People in LLMs' Shoes: Generating Better Answers via Question Rewriter

Junhao Chen, Bowen Wang, Zhouqiang Jiang, Yuta Nakashima
8/20/2024
cs.CLcs.AI

Official code: 3244we/Question-Rewriter (8 stars, last commit 2025-02-26).

Abstract

Large Language Models (LLMs) have demonstrated significant capabilities, particularly in the domain of question answering (QA). However, their effectiveness in QA is often undermined by the vagueness of user questions. To address this issue, we introduce single-round instance-level prompt optimization, referred to as question rewriter. By enhancing the intelligibility of human questions for black-box LLMs, our question rewriter improves the quality of generated answers. The rewriter is optimized using direct preference optimization based on feedback collected from automatic criteria for evaluating generated answers; therefore, its training does not require costly human annotations. The experiments across multiple black-box LLMs and long-form question answering (LFQA) datasets demonstrate the efficacy of our method. This paper provides a practical framework for training question rewriters and sets a precedent for future explorations in prompt optimization within LFQA tasks. Code is available at https://github.com/3244we/Question-Rewriter.

View on arXivView PDF

Code Implementations(1)

This includes the code for generating data and training the rewriter using DPO. The DPO training code is derived from https://github.com/eric-mitchell/direct-preference-optimization with minor modifications.

81PythonAug 20, 20241 years ago

Similar Papers

Cite this paper

@article{chen2024putting,
  title  = {Putting People in LLMs' Shoes: Generating Better Answers via Question Rewriter},
  author = {Junhao Chen and Bowen Wang and Zhouqiang Jiang and Yuta Nakashima},
  year   = {2024},
  eprint = {2408.10573},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.10573v2}
}

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

Discussion