Saved in:
Bibliographic Details
Main Authors: Shen, Yige, Jiang, Hao, Qu, Hua, Zhao, Jihong
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.13050
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929391110455296
author Shen, Yige
Jiang, Hao
Qu, Hua
Zhao, Jihong
author_facet Shen, Yige
Jiang, Hao
Qu, Hua
Zhao, Jihong
contents Despite their impressive capabilities, large language models (LLMs) often face challenges such as temporal misalignment and generating hallucinatory content. Enhancing LLMs with retrieval mechanisms to fetch relevant information from external sources offers a promising solution. Inspired by the proverb "Think twice before you act," we propose a dual-angle evaluated retrieval-augmented generation framework \textit{Think-then-Act}. Unlike previous approaches that indiscriminately rewrite queries or perform retrieval regardless of necessity, or generate temporary responses before deciding on additional retrieval, which increases model generation costs, our framework employs a two-phase process: (i) assessing the input query for clarity and completeness to determine if rewriting is necessary; and (ii) evaluating the model's capability to answer the query and deciding if additional retrieval is needed. Experimental results on five datasets show that the \textit{Think-then-Act} framework significantly improves performance. Our framework demonstrates notable improvements in accuracy and efficiency compared to existing baselines and performs well in both English and non-English contexts. Ablation studies validate the optimal model confidence threshold, highlighting the resource optimization benefits of our approach.
format Preprint
id arxiv_https___arxiv_org_abs_2406_13050
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Think-then-Act: A Dual-Angle Evaluated Retrieval-Augmented Generation
Shen, Yige
Jiang, Hao
Qu, Hua
Zhao, Jihong
Computation and Language
Despite their impressive capabilities, large language models (LLMs) often face challenges such as temporal misalignment and generating hallucinatory content. Enhancing LLMs with retrieval mechanisms to fetch relevant information from external sources offers a promising solution. Inspired by the proverb "Think twice before you act," we propose a dual-angle evaluated retrieval-augmented generation framework \textit{Think-then-Act}. Unlike previous approaches that indiscriminately rewrite queries or perform retrieval regardless of necessity, or generate temporary responses before deciding on additional retrieval, which increases model generation costs, our framework employs a two-phase process: (i) assessing the input query for clarity and completeness to determine if rewriting is necessary; and (ii) evaluating the model's capability to answer the query and deciding if additional retrieval is needed. Experimental results on five datasets show that the \textit{Think-then-Act} framework significantly improves performance. Our framework demonstrates notable improvements in accuracy and efficiency compared to existing baselines and performs well in both English and non-English contexts. Ablation studies validate the optimal model confidence threshold, highlighting the resource optimization benefits of our approach.
title Think-then-Act: A Dual-Angle Evaluated Retrieval-Augmented Generation
topic Computation and Language
url https://arxiv.org/abs/2406.13050